package com.tbs.easyhomemoneyserver.form

import com.fasterxml.jackson.annotation.JsonFormat
import com.tbs.easyhomemoneyserver.constants.CommonConstants
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.*

@ApiModel
data class HomeSearchForm(
    @ApiModelProperty("家庭组id") val homeId: Set<Long>? = null,
    @ApiModelProperty("精确的家庭组名") val accurateHomeName: String? = null,
    @ApiModelProperty("模糊的家庭组名") val vagueHomeName: String? = null,
    @ApiModelProperty("成员id") val memberId: Set<Long>? = null,
    @JsonFormat(pattern = CommonConstants.DATE_FORMAT_yyyyMMddHHmmss) @ApiModelProperty("创建日志之前") val createDateBefore: Date? = null,
    @JsonFormat(pattern = CommonConstants.DATE_FORMAT_yyyyMMddHHmmss) @ApiModelProperty("创建日志之后") val createDateAfter: Date? = null

)
